package com.dps.omc.model;
import com.dps.omc.enumer.EnumGroupType;
import com.dps.omc.enumer.EnumJobAuditState;
import com.dps.omc.enumer.EnumJobState;
import com.dps.common.domain.BaseDomain;

import java.util.Date;

public class Job extends BaseDomain{
	private String name; //名称
	private EnumGroupType groupType; //分组类型
	private String subjectId; //程序提交ID
	private String artifactId; //构件ID
	private String artifactPath; //构件文件路径
	private String templateId; //模板ID
	private String note; //说明
	private Boolean isuploadfile; //是否执行附件
	private Boolean iscron; //是否定时
	private String cronexpr; //定时表达式
	private String createrId; //创建人ID
	private String createrName; //创建人名
	private Date createDate; //创建时间
	private EnumJobState status; //状态
	private EnumJobAuditState auditState;//审核状态
	private Integer taskSucc=0;//成功数
	private Integer taskFail=0;//失败数
	public Job()
	{}

	public Job(String subjectId)
	{
		this.setSubjectId(subjectId);
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public EnumGroupType getGroupType() {
		return groupType;
	}
	public void setGroupType(EnumGroupType groupType) {
		this.groupType = groupType;
	}
	public String getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}
	public String getArtifactId() {
		return artifactId;
	}
	public void setArtifactId(String artifactId) {
		this.artifactId = artifactId;
	}
	public String getArtifactPath() {
		return artifactPath;
	}
	public void setArtifactPath(String artifactPath) {
		this.artifactPath = artifactPath;
	}
	public String getTemplateId() {
		return templateId;
	}
	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Boolean getIsuploadfile() {
		return isuploadfile;
	}
	public void setIsuploadfile(Boolean isuploadfile) {
		this.isuploadfile = isuploadfile;
	}
	public Boolean getIscron() {
		return iscron;
	}
	public void setIscron(Boolean iscron) {
		this.iscron = iscron;
	}
	public String getCronexpr() {
		return cronexpr;
	}
	public void setCronexpr(String cronexpr) {
		this.cronexpr = cronexpr;
	}
	public String getCreaterId() {
		return createrId;
	}
	public void setCreaterId(String createrId) {
		this.createrId = createrId;
	}
	public String getCreaterName() {
		return createrName;
	}
	public void setCreaterName(String createrName) {
		this.createrName = createrName;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public EnumJobState getStatus() {
		return status;
	}
	public void setStatus(EnumJobState status) {
		this.status = status;
	}

	public EnumJobAuditState getAuditState() {
		return auditState;
	}

	public void setAuditState(EnumJobAuditState auditState) {
		this.auditState = auditState;
	}

	public Integer getTaskSucc() {
		return taskSucc;
	}

	public void setTaskSucc(Integer taskSucc) {
		this.taskSucc = taskSucc;
	}

	public Integer getTaskFail() {
		return taskFail;
	}

	public void setTaskFail(Integer taskFail) {
		this.taskFail = taskFail;
	}
}
